﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 实验1_2._0
{
    public partial class 实验1_4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int n = 3;
            int i, a, b;
            char word = 'A';
            for (i = 1; i <= n; i++)
            {
                for (a = n - 1; a >= i; a--)
                {
                    Response.Write("&nbsp;");

                }
                for (b = 1; b <= 2 * i - 1; b++)
                {
                    Response.Write(word.ToString()); 
                }
                word++;Response.Write("<br />");
            }
            for(i=n-1;i>=1;i--)
            {
                for(a=i;a<=n-1;a++)
                {
                    Response.Write("&nbsp;");
                }
                for(b=1;b<=2*i-1;b++)
                {
                    Response.Write(word.ToString());
                }
                word++;Response.Write("<br />");
            }
            }
        }
    }
